package com.itheima.homework.assignment.Test02;

/**
 * 定义一个子类(实现类)AirConditioning(空调),继承家用电器类的同时实现插座接口,重写抽象方法
 */
public class AirConditioning extends Appliance implements Sockets{
    @Override
    public void open() {
        System.out.println("空调打开啦～");
    }

    @Override
    public void close() {
        System.out.println("空调关闭啦～");
    }

    @Override
    public void tongDian() {
        System.out.println("通电啦～");
    }

    public void refrigeration() {
        System.out.println("空调制冷啦～");
    }
}
